#ifndef TASK_H
#define TASK_H
//  File:         Task.h
//  Author:       Scott Nordmann & Lauren Wallace
//  Description:  A class definition for the Task.
#include "Entry.h"
#include <iostream>
class Task : public Entry
{
public:
	Task(const std::string& creator);
	Task(const std::string& creator,const std::string& titl,const std::string& cont, double prio);

	void display();
	virtual void populate();
	void edit();

	//priority
	double getPriority() const;
	void setPriority(double prio);

	virtual bool operator==(const Task& n) const;
	virtual bool operator!=(const Task& n) const;
	virtual bool operator<(const Task& n) const;
	virtual bool operator>(const Task& n) const;

private:
	double priority;
};
inline double Task::getPriority() const { return priority; }
inline bool Task::operator==(const Task& t) const
{
	return (  getPriority() == t.getPriority()  );
}
inline bool Task::operator!=(const Task& t) const
{
	return !(*this == t);
}
inline bool Task::operator<(const Task& t) const
{
	return (  getPriority() < t.getPriority()  );
}
inline bool Task::operator>(const Task& t) const
{
	return !(*this < t || *this == t);
}
#endif